/* 侧边栏样式 */
.sidebar {
    transition: width 0.3s ease;
    background-color: #2c3e50; /* 使用深色背景 */
    color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    padding: 20px;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar .logo {
    margin-bottom: 40px;
    text-align: center;
}

.sidebar .nav-menu .nav-item {
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.sidebar .nav-menu .nav-item:hover {
    background-color: #34495e;
}

.sidebar .nav-menu .nav-item a {
    color: white;
    text-decoration: none;
}

/* 仪表盘样式 */
.dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ecf0f1;
    flex-direction: column;
}

.dashboard-title {
    width: 100%;
}

.dashboard-title h3 {
    font-size: 24px;
    color: #2c3e50;
}

.dropdown button {
    background-color: #f39c12;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dropdown button:hover {
    background-color: #e67e22;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px; /* 添加圆角 */
    overflow: hidden; /* 隐藏溢出内容 */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
}

/* 时间线样式 */
.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #ccc;
}

.timeline-time {
    font-weight: bold;
}

/* 分页样式 */
.pagination a.active {
    background-color: #007bff;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* 自定义按钮样式 */
.btn-primary-custom {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

.btn-primary-custom:hover {
    background-color: #2980b9;
    transform: translateY(-2px); /* 添加悬停效果 */
}

.btn-secondary-custom {
    background-color: #bdc3c7;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

.btn-secondary-custom:hover {
    background-color: #aab2bd;
    transform: translateY(-2px); /* 添加悬停效果 */
}

/* 统计卡片样式 */
.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 24px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
}

.stat-label {
    color: #7f8c8d;
}

.stat-change {
    margin-top: 5px;
}

.stat-change i {
    font-size: 14px;
    margin-right: 5px;
}

/* 头部样式 */
.header {
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    padding: 10px;
    border-radius: 4px;
    width: 200px;
}

.user-info img {
    width: 30px;
    height: 30px;
}

/* 管理员工具栏样式 */
.admin-toolbar {
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.quick-stats {
    display: flex;
    gap: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* 筛选栏样式 */
.filter-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* 表格样式 */
.order-list {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-list th,
.order-list td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.order-list th {
    background-color: #f5f5f5;
}

.order-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.order-status-processing {
    background-color: #f1c40f;
    color: white;
}

.order-status-completed {
    background-color: #2ecc71;
    color: white;
}

.order-status-cancelled {
    background-color: #e74c3c;
    color: white;
}